// =============  1. 原始类型（ES5 版）  =============
var a = null;
var b = undefined;
var c = true;
var d = 6;
var f = 'ts';
// =============  2. 包装对象（仅演示，不推荐）  =============
var h = new String('wrapper');
var i = new Number(42);
var j = new Boolean(false);
// =============  3. ES5 内置引用类型  =============
var k = {};
var l = [1, 2];
var m = new Date();
var n = /ab+c/;
var o = new Error('oops');
// =============  4. 函数类型  =============
var t = function () { };
var u = function (x) { return x.toString(); };
// =============  5. 元组（TS 特有，ES5 兼容）  =============
var v = ['age', 18];
// =============  6. 枚举  =============
var Color;
(function (Color) {
    Color[Color["Red"] = 0] = "Red";
    Color[Color["Green"] = 1] = "Green";
    Color[Color["Blue"] = 2] = "Blue";
})(Color || (Color = {}));
var w = Color.Red;
// =============  7. Top / Bottom / Unknown  =============
var x = 7;
var y = 8;
function inf() { while (true) { } }
// =============  8. 字面量类型  =============
var z1 = 'click';
var z2 = 404;
// =============  13. 类与接口  =============
var Point = /** @class */ (function () {
    function Point() {
    }
    return Point;
}());
var pt = new Point();
var numStack = { push: function () { }, pop: function () { return 0; } };
var usd = 10;
// =============  17. 断言签名  =============
function assert(val) {
    if (typeof val !== 'string')
        throw 0;
}
var dir = 1 /* Dir.Up */;
// =============  22. 抽象构造签名  =============
var Animal = /** @class */ (function () {
    function Animal() {
    }
    return Animal;
}());
// =============  23. satisfies（TS4.9+）  =============
var cfg = {
    port: 3000,
    host: '0.0.0.0'
};
